<?php $collection = $this->getIndexCollection(); ?>

<table class="col1 left">
	<?php foreach($collection as $key => $item): ?>
		<?php
			$item->setName($item->getIndexer()->getName());
			$item->setDescription($item->getIndexer()->getDescription());
			$item->setUpdateRequired($item->getUnprocessedEventsCollection()->count() > 0 ? 1 : 0);				
		?>
		<tr>
			<td title="<?php echo $item->getDescription(); ?>"><?php echo $item->getName(); ?></td>
			<td><div title="<?php echo ($item->getStatus() == 'require_reindex') ? 'Reindex is required!' : 'Reindex'; ?>" id="<?php echo $item->getIndexerCode(); ?>" class="img refresh<?php echo ($item->getStatus() == 'require_reindex') ? ' require' : ''; ?>"></div></td>
		</tr>
		<?php if($key == 5): ?>
			</table><table class="col2 left">
		<?php endif; ?>
	<?php endforeach; ?>
</table>